package com.test.mapper;

import com.test.pojo.DinnerTable;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DinnerTableMapper {

    List<DinnerTable> getAllDinnerTable();

    int updateDinnerTableStatus(DinnerTable dinnerTable);

    int deleteDinnerTable(@Param("tableId") int tableId);

    int addDinnerTable(DinnerTable dinnerTable);

    List<DinnerTable> serachDinnerTable(@Param("dinnerTable") String dinnerTable);

    DinnerTable getDinnerTableByID(@Param("tableId") int tableId);
}
